#include<bits/stdc++.h>

using namespace std;

int main()
{
    string s1, s2; cin >> s1 >> s2;
    string ans;

    int i = s1.size() - 1, j = s2.size() - 1;

    int tmp = 0;
    while(i >= 0 || j >=0 || tmp > 0)
    {
        if(i >= 0) tmp += s1[i--] - '0';
        if(j >= 0) tmp += s2[j--] - '0';
        ans.push_back(tmp % 10 + '0');
        tmp /= 10;
    }

    reverse(ans.begin(), ans.end());

    cout << ans << endl;

    return 0;
}